<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@taglib prefix="sf" uri="http://www.springframework.org/tags/form" %>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>地址修改</title>
</head>
<body>
<div id="content">
    <h3 class="admin_link_bar">
        <jsp:include page="/jsp/common.jsp"></jsp:include>
    </h3>

    <sf:form method="post"  modelAttribute="address">
        <input type="hidden" name="id" value="${address.id }"/>
        <table width="700" class="thin-border" align="center">
            <tr>
                <td>修改地址用户:</td>
                <td>${address.user.nickname }</td>
            </tr>
            <tr>
                <td>详细地址：</td>
                <td><sf:input path="name" value="${name }" size="60"/><span
                        class="errorContainer"> </span></td>
            </tr>
            <tr>
                <td>联系电话：</td>
                <td><sf:input path="phone" value="${phone }"/><span class="errorContainer"> </span>
                </td>
            </tr>
            <tr>
                <td>邮政编码：</td>
                <td><sf:input path="postcode" value="${postcode }"/></td>
            </tr>
            <tr>
                <td colspan="2">
                    <input type="submit" path="修改地址"/><input type="reset"/>
                </td>
            </tr>
        </table>
    </sf:form>
</div>
</body>
</html>